package ${packageName}.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
<#if dtoFlag=='Y'>
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
</#if>
<#if multiFlag??>
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import ${packageName}.dto.${entityDTO};
import ${packageName}.dto.${entityMultiDTO};
</#if>
import ${packageName}.entity.${entityName};
<#if dtoFlag=='Y'>
import ${packageName}.dto.${entityName}DTO;
import java.util.List;
import java.util.Map;
</#if>
<#if multiFlag??>
import java.util.List;
import java.util.Map;
</#if>
/**
* @author OFG
* @version 1.0
* @date 2021/1/6 20:09
* @Description
*/
public interface ${entityName}Mapper extends BaseMapper<${entityName}> {

<#if multiFlag??>
    ${entityDTO} selectMultiJoinById(Integer id);

    IPage<${entityMultiDTO}> selectEntityList(Page<${entityMultiDTO}> page,@Param(Constants.COLUMN_MAP) Map<String, Object> params);
</#if>
<#if singleSqlFlag ==true>
    IPage<${entityName}DTO> selectEntityList(Page<${entityName}DTO> page,@Param(Constants.COLUMN_MAP) Map<String, Object> params);
</#if>
}
